package book.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/test")
@RestController
public class TestController {
    @RequestMapping("/test01")
    public Integer test01(){
        int a=10/0;
        return a;
    }
    @RequestMapping("/test02")
    public Integer test02(){
        String s=null;
        return s.length();
    }
    @RequestMapping("/test03")
    public Integer test03(){
        int[] arr={1,2,3,4,5};
        return arr[5];
    }
}
